package GUI;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.Color;
import javax.swing.border.LineBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.DefaultComboBoxModel;

public class Alterar_Funcionario {

	private JFrame frame;
	private JTextField txbnome;
	private JTextField txbcpf;
	private JTextField txbemail;
	private JTextField txbtelres;
	private JTextField txbtelceluluar;
	private JTable table;
	private JTextField txbid;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Alterar_Funcionario window = new Alterar_Funcionario();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public Alterar_Funcionario() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.getContentPane().setBackground(Color.WHITE);
		frame.setBounds(100, 100, 863, 472);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setLayout(null);
		panel.setBorder(new LineBorder(new Color(0, 0, 0), 2));
		panel.setBackground(Color.BLUE);
		panel.setBounds(0, 0, 847, 81);
		frame.getContentPane().add(panel);
		
		JLabel lblAleraoDeFuncionrio = new JLabel("Alera\u00E7\u00E3o de Funcion\u00E1rio");
		lblAleraoDeFuncionrio.setForeground(Color.WHITE);
		lblAleraoDeFuncionrio.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblAleraoDeFuncionrio.setBounds(291, 27, 197, 20);
		panel.add(lblAleraoDeFuncionrio);
		
		txbnome = new JTextField();
		txbnome.setColumns(10);
		txbnome.setBounds(92, 91, 262, 20);
		frame.getContentPane().add(txbnome);
		
		JLabel label_1 = new JLabel("Nome:");
		label_1.setFont(new Font("Tahoma", Font.BOLD, 14));
		label_1.setBounds(36, 92, 46, 14);
		frame.getContentPane().add(label_1);
		
		JLabel label_2 = new JLabel("Cpf:");
		label_2.setFont(new Font("Tahoma", Font.BOLD, 14));
		label_2.setBounds(36, 117, 46, 22);
		frame.getContentPane().add(label_2);
		
		txbcpf = new JTextField();
		txbcpf.setColumns(10);
		txbcpf.setBounds(92, 122, 262, 20);
		frame.getContentPane().add(txbcpf);
		
		JComboBox combocargo = new JComboBox();
		combocargo.setModel(new DefaultComboBoxModel(new String[] {"Selecione o cargo", "Operador", "Supervisor"}));
		combocargo.setBounds(35, 287, 137, 20);
		frame.getContentPane().add(combocargo);
		
		JLabel label_3 = new JLabel("Cargo:");
		label_3.setFont(new Font("Tahoma", Font.BOLD, 14));
		label_3.setBounds(79, 259, 53, 22);
		frame.getContentPane().add(label_3);
		
		JLabel label_4 = new JLabel("Empresa:");
		label_4.setFont(new Font("Tahoma", Font.BOLD, 14));
		label_4.setBounds(251, 258, 77, 22);
		frame.getContentPane().add(label_4);
		
		JComboBox comboempresa = new JComboBox();
		comboempresa.setModel(new DefaultComboBoxModel(new String[] {"Selecione a empresa"}));
		comboempresa.setBounds(215, 287, 137, 20);
		frame.getContentPane().add(comboempresa);
		
		JComboBox combosexo = new JComboBox();
		combosexo.setModel(new DefaultComboBoxModel(new String[] {"Selecione o sexo", "Masculino", "Feminino"}));
		combosexo.setBounds(92, 147, 119, 20);
		frame.getContentPane().add(combosexo);
		
		JLabel label_5 = new JLabel("Sexo:");
		label_5.setFont(new Font("Tahoma", Font.BOLD, 14));
		label_5.setBounds(36, 142, 46, 22);
		frame.getContentPane().add(label_5);
		
		JLabel label_6 = new JLabel("Email:");
		label_6.setFont(new Font("Tahoma", Font.BOLD, 14));
		label_6.setBounds(36, 168, 46, 22);
		frame.getContentPane().add(label_6);
		
		txbemail = new JTextField();
		txbemail.setColumns(10);
		txbemail.setBounds(92, 170, 262, 20);
		frame.getContentPane().add(txbemail);
		
		JLabel label_7 = new JLabel("Telefone res.");
		label_7.setFont(new Font("Tahoma", Font.BOLD, 14));
		label_7.setBounds(36, 193, 96, 22);
		frame.getContentPane().add(label_7);
		
		txbtelres = new JTextField();
		txbtelres.setColumns(10);
		txbtelres.setBounds(134, 196, 220, 20);
		frame.getContentPane().add(txbtelres);
		
		JLabel label_8 = new JLabel("Celular:");
		label_8.setFont(new Font("Tahoma", Font.BOLD, 14));
		label_8.setBounds(36, 226, 61, 22);
		frame.getContentPane().add(label_8);
		
		txbtelceluluar = new JTextField();
		txbtelceluluar.setColumns(10);
		txbtelceluluar.setBounds(92, 229, 262, 20);
		frame.getContentPane().add(txbtelceluluar);
		
		JButton button = new JButton("Salvar");
		button.setBounds(56, 323, 89, 23);
		frame.getContentPane().add(button);
		
		JButton button_1 = new JButton("Voltar");
		button_1.setBounds(254, 323, 89, 23);
		frame.getContentPane().add(button_1);
		
		JPanel panel_1 = new JPanel();
		panel_1.setLayout(null);
		panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 2));
		panel_1.setBackground(Color.BLUE);
		panel_1.setBounds(0, 357, 847, 81);
		frame.getContentPane().add(panel_1);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(391, 143, 334, 202);
		frame.getContentPane().add(scrollPane);
		
		table = new JTable();
		table.setModel(new DefaultTableModel(
			new Object[][] {
			},
			new String[] {
				"ID", "Nome"
			}
		));
		scrollPane.setViewportView(table);
		
		txbid = new JTextField();
		txbid.setColumns(10);
		txbid.setBounds(735, 196, 102, 20);
		frame.getContentPane().add(txbid);
		
		JLabel lblPesquisarId = new JLabel("Pesquisar Id:");
		lblPesquisarId.setFont(new Font("Tahoma", Font.BOLD, 14));
		lblPesquisarId.setBounds(735, 172, 96, 14);
		frame.getContentPane().add(lblPesquisarId);
		
		JLabel lblSelecioneOFuncionrio = new JLabel("Selecione o funcion\u00E1rio a ser alterado");
		lblSelecioneOFuncionrio.setFont(new Font("Tahoma", Font.BOLD, 14));
		lblSelecioneOFuncionrio.setBounds(422, 118, 306, 14);
		frame.getContentPane().add(lblSelecioneOFuncionrio);
		
		JButton btnPesquisar = new JButton("Pesquisar");
		btnPesquisar.setBounds(745, 228, 89, 23);
		frame.getContentPane().add(btnPesquisar);
	}
}
